export default {
  namespace: 'update',
  subscriptions: {
    setup ({ dispatch, history }) {
      history.listen((location) => {
        // 用户刷新页面时候请求编排接口
        if (location.pathname === '/cardUpdate') {
          dispatch({
            type: 'modules/getModules',
            payload: {
              pathname: '',
              businessId: '1231241212',
              process: 'cardUpdate',
              title: '身份证信息更新'
            }
          })
        }
      })
    }
  },
}